﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucSearchCustomer.ascx.cs"
    Inherits="UserControl_ucSearch" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<div class="full_width">
    <p class="breadcrumb">
        <a href="Default.aspx">Home</a> / <strong class="active-link">Page Title</strong></p>
</div>
<div class=" block">
    <div id="left-navigation">
        <h3>
            Functions</h3>
        <table width="100%" style="margin-right: 5px">
            <tr>
                <td>
                    <asp:Button ID="btnSearch" runat="server" Text="SEARCH" CssClass="button_all" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnClearSearch" runat="server" Text="CLEAR SEARCH" CssClass="button_all"
                        OnClick="btnClearSearch_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnAddNew" runat="server" Text="ADD NEW CUSTOMER" CssClass="button_all" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnClose" runat="server" Text="CLOSE FORM" CssClass="button_all"
                        OnClick="btnClose_Click" />
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="right_three r-align  ">
    <h3>
        CUSTOMER SEARCH</h3>
    <table id="table1" width="100%">
        <tr>
            <td style="width: 500px" valign="top">
                <table width="600px">
                    <tr>
                        <td style="text-align: right">
                            FirstName
                            <asp:TextBox ID="txtFirstName" CssClass="inp-form" runat="server"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td style="text-align: right">
                            Last Name&nbsp;
                            <asp:TextBox ID="txtLName" CssClass="inp-form" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            Customer ID
                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" FilterType="Numbers"
                                TargetControlID="txtCustID">
                            </asp:FilteredTextBoxExtender>
                            <asp:TextBox ID="txtCustID" CssClass="inp-form" runat="server"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td style="text-align: right">
                            Mobile &nbsp;
                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                                TargetControlID="txtMobi">
                            </asp:FilteredTextBoxExtender>
                            <asp:TextBox ID="txtMobi" CssClass="inp-form" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <%--<tr>
                        <td style="text-align: right">
                            Company Name
                            <asp:TextBox ID="txtCompName" CssClass="inp-form" runat="server"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>--%>
                </table>
            </td>
        </tr>
    </table>
</div>
<div class="full">
    <ul class="tabs ">
        <li class="active"><a href="#a">Customer Details</a></li>
    </ul>
    <div class="tab_container inner">
        <div class="tab_content" id="a" style="display: block;">
            <!--Content-->
            <p class="main">
                <%-- <fieldset width="900">
                    <legend><span style="color: Red; font-size: large">Customer</span></legend>--%>
                <asp:GridView ID="grdCustomerList" runat="server" AutoGenerateColumns="False"
                    CssClass="grd" OnRowDataBound="grdCustomerList_RowDataBound" 
                    AllowPaging="True" onpageindexchanging="grdCustomerList_PageIndexChanging" 
                    PageSize="6">
                    <Columns>
                         <asp:TemplateField HeaderText="CustomerFullname" HeaderStyle-Height="50px">
                            <ItemTemplate>
                                <%# Eval("CustomerFullname")%></ItemTemplate>

<HeaderStyle Height="50px"></HeaderStyle>

                            <ItemStyle Height="100px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                      <%--  <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Default4.aspx?id={0}"
                            DataTextField="CustomerFullname" HeaderText="Customer Name">
                            <ControlStyle></ControlStyle>
                            <ItemStyle Width="170px" Height="50px" />
                        </asp:HyperLinkField>--%>
                        <asp:TemplateField HeaderText="Company Name">
                            <ItemTemplate>
                                <%# Eval("Companyname") %>
                            </ItemTemplate>
                            <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Phone Moblie" HeaderStyle-Width="100px">
                            <ItemTemplate>
                                <%# Eval("phonemobile")%>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Email Address" HeaderStyle-Width="150px">
                            <ItemTemplate>
                                <%# Eval("emailaddress")%>
                            </ItemTemplate>
                            <HeaderStyle Width="150px"></HeaderStyle>
                            <ItemStyle Width="90" VerticalAlign="Middle" HorizontalAlign="center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Prefer Contact Method" HeaderStyle-Width="100px">
                            <ItemTemplate>
                                <asp:Label ID="lbMethod" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle Width="90" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle CssClass="grdHeader" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                    <PagerSettings PageButtonCount="6" />
                    <RowStyle CssClass="grdRow" />
                </asp:GridView>
                <%-- <asp:TemplateField HeaderText="CustomerID" HeaderStyle-Height="50px">
                            <ItemTemplate>
                                <%# Eval("CustomerIndex") %></ItemTemplate>
                            <ItemStyle Height="70" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>--%>
            </p>
        </div>
        <div class="tab_content" id="b" style="display: none;">
            <!--Content-->
            <table width="100%">
                <tr>
                    <td class="style1" valign="top" style="text-align: right">
                        Fault Descriptions
                    right">
                        Orthe Instructions
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtInstruction" runat="server" TextMode="MultiLine" Width="96.5%"
                            CssClass="inp-form"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style1" valign="top" style="text-align: right">
                        Accessories With Phone
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtAccessories" runat="server" TextMode="MultiLine" Width="96.5%"
                            CssClass="inp-form"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
